add sync and close methods to dropbox file