fix `mid` unloop bug with other minor improves
improve examples