function defs for load_from_file and string spliting