use the stored extension for files