enhanced doctags implementation