made daemonization play nicely with logging + added a normal mode option