a handler func in Daemon