added kevin123's threaded scripts