add http functions and files