wip; added hooks for subrun remove-run handling