add kwargs support to boundFunction