add coments for loading logic