modified build and run scripts