remove the now unnecessary strdup calls