implemented daemon server script