tiny queue system based on starling, in scala