refactored queue saving, get pending queue abillity