add daemon support
file not dir