handle transfers. fixes #584