more auto_invert code + examples
more auto_invert code + examples