some cmake changes, inputing which pairs to register