some modifications -> wqueue loop