added debugging functions to working queue