add configuration option for autoOrient