convert_dt function moved to utilities_internal.R
fixed merge