added trace, auto rotation not working yet