updated building scripts