added instance generator, with JSON config