coding changes made to gc.cc to get around strict enums.