get rid of more strdup and free, these should be strings later and prevent use after free in odd cases