adds load from file feature
fix CMAkelists