added queue processing