impove script queueing