changes to start consuming JSON