added queue pause and resume