this should be the correct order (currently has two gCS calls)
scripted update of code from master at a9faec0 this should be the correct order (currently has two gCS calls)