improvements to awg and run script to include new phases