fixing const issues. Apparently my syntax sucks
fixed lots of compile errors in cfg