rename scope to context
better log format for exceptions