changed c to use the more generic code directory