updated Q-curves and script