return progress as json. Fixes #6