added basic graphics support. not sure if it works yet. also other stuff