dynamic loading of functions dir