add support for string and load file functions