abandoned cgfunctions attempt until fix comes