updated createChildCsFile function
updated createChildCsFile method