Adding the ability to build a local model from a JSON local file

this exception is going to be caught by the `catch (err)` below, and this message won't appear anywhere... perhaps the handler below should inherit the message of the caught exception?