master script working