started fixing traits/ctrait.c
work in progress