debug method for creating a queue