switch direction wip
extracted arranger
cracked the layout code