refactoring: moved start/stop daemon in separate module