move interface to parrot.h