Making it easier to copy types
switched to gob decode switch