support run as deamon