fix build ordering