daemonization and socket io support