added logging, crashlytics not implemented yet