adding support to autorotate