add compass handler