fixed rqlDo and removed dead code