update path model and fix rotation