adding callback option to load and add functions