putFile improvements