allow passing in basename