call handler if it's a custom function