only try extracting if extract is enabled. Fixes #523