Constructor/path method allow substitution parameters
instance can have onFailure closure