improvements for find declaration and show doc commands