use format() instead of string concatenation
extract http layer