rework of build system, enabling of caches