tweak to pbuffer support