add tools for daemonize, multithreading, priorityqueue