add read&write queue