supporting functions being passed as an array
0.3.0 supports functions to be passed as array