draft of phpdaemon