add deserializer. Not working yet