building scripts adjusted