adding helpers from RapidTransit

here are the two extension methods from RapidTransit