added support for compass