eliminating the strdup related warnings