make daemon accept parameters