adding compass support