changed parallel -- almost working; also fixed small bugs in check_mode