add $self to inflate/deflate