some fix; added daemon script