add bitlash function-defined safety wrapper