copy file fixes