parse before sending to lib