add basename to ext