added some tests and settings
fixed dropbox logic