http_message handling revamped