implements automatic docs generation for 3.2 and above