drastic overhaul of build system