changed load to be classmethod