mesh logic much improved and simplified, just a bit more testing