fixing daemon problem