changed to daemon mode