updated check in queryPinCommand() for alpha0