initial code for bugsnag