return right value on scalar context or croak if multiple values are available