update scripts to run as daemons