use full path to basename