updated to using master script