added initialization and shutdown of datatypes