make registering of data_handlers optional