better support rotate locally