renaming main to mainQueue