improve API of parapply (now taking a range)