added closetag and home directory search