big upgrade of the visual core (hiearchy inlining + code beautification)