moving metadata file after reading https://forums.aws.amazon.com/thread.jspa?messageID=541999#541999