move get_data_prefix into base class