add loging for autorotate