loading functions still has errors...