almost working build