random doc in json output added
better parsing tm, with all the exceptions