changes to gym type loader