master script to generate everything