implement the type=number hack with binding