remove old unconsolitateed appmemk/net opcode stuff, fix k warnings.