double-forking to the background at the top of the serve() function for servers and monitor