add queue limit and test