working on dameons and error logging