getting the basic layout working, and other fiddling