added --deamonize support