queue system written