changed daemon spawn to fork