improvements on core.http and core.event