main: fixed basename composition