tested with one process, works, need to test with two processes and daemonize