small fix and enable multiprocessing