extract with path prefix
catch output