added slot array option, fixed stdout/stderr bug