dramatic overhaul of automation. too long to explain here. this work is not finished...