added compass support