clean the Pull emulation code