fix daemonizing
fmt & lint