remove old code and update file sync