re-generating the script to include new detail item definition