continue supporting functions for src and dest in middleware