fix error detection
tweak concurrency
tell mr-function how much ram per slot we have
use slot memory limit instead of arbitrary default for JVM memory size