fixed up compass integration