adding init code from dropbox