added Compass registration code