added queue and moved ruby into common