140507-iss007: modify qr routines