moved dropbox API calls back into factory, cleaned up methods