add sleeping and quick stop functions