added file loading capabilities