improved side parsing from file basenames