add and load custom function