updated dropbox code