put deserialisation inside try like it should have been