add http and file reader helper functions