move tpToModelSchema to targetprocess.js where it belongs
a little clean up
fix typo