5.30

reworked U-shape detection conditions, added partial U-shape check.