some packet stuff and serializers
unstable and unfinished, just a backup commit