added stack trace errors in dev mode