changes to enable some basic drawing and some bug fixes to the network code