do this inreplace before doing any `install` calls.