change context to automatically
http and opt
http refactored