script to create CS API