also store extension in attribute of dataformat class