initial import of greg sowell's queue script