update loading functions