fixes for native platforms and cloth alignment