updated to only start/stop services if not running