Improved key/packet handling + world gen