moved json output style check to global section