custom deserializer for obstacles