add options rotate handling