local with Stubfile.json support - Fixes #1