add basic code to load entity from a file