implemented queue purging