enable 'enter' for dir share; improved code for lib-share