Mass of pc fixes - rewriting the packet code (sigh!)