should use filename for when basename works