improving scripts and fixing node name variable for master script