adds function for transfer.sh