more synchronous and efficient file copying