various fixes in rendering and building, +tests