adding emergency stop