added compass support.