matt: added transfer 'type' support, and optional dir create