handle functions passed as paramters in instrumenter_spec