make writing proper daemons easier