now using strdup in config instead of own implementation