added BGGraphics and Exnem patches