Add src and dest path to middleware, closes #7