stability improvements for multiprocessing, added queue for handling of return values