get rid of global graph variable, make ogre calls explicit