added fast entity retrieving from file