copying relevant modules over from Parakeet