moved _process_stopped and _process_started into internals