make removeQueue more generic (maybe useful later)