save datatypes and spectypes