add option to run as daemon