fixing layered builds