updated to monitor the processes that are enqueued