added rudimentary graphics support