reverting sync file changes, helper function for accepting keys