half-assed a start on loading functions