make secret token work in dev
output the stacktrace for exceptions