apply knockout bindings only when dynamic
remove excess middleware