rather hacky daemon