added files from csg.js for testing