support for method docs, cleanup