moved default functions to cgf_default.go