added parser functions for http