apply proper context to console
optimizations