added loading of custom functions