little improvements for graphics system