add some strdup() to avoid const warnings