added stage4 functionality:!close and !reactivate