fix an exception in user code, and increase slave cores to 4