split scripts among different layouts