daemonize call fix for changed API