added support for using compass