package.json fix
some parameter type checking in converting