remove knockout mapping and update typings