updates to integrate rendering code with network code