added code to transfer files to router