added more functionality to FBOStages and ProgramPasses