add support for clustering. improve child_process and exception handling