add compass support