refactored dropbox operations