added external queue stuff