now adds finalized data to result
use try/catch to make things nicer.