copying ctp see lib & headers