140503-iss004: modify qr routines