enhanced gfx buffer management requested by core and some small refactoring