stop using mapM as a poor man's replicateM