ME: reverted back to initial changes; raise error when format is not json