first work on IGWmod compatability and fixes a small rendering bug