add basename, close #1