only load raven if sentry is defined
restructuring