bug fix: handle multiple values in extract