misc:refactor http