convert definitions to cs files