fix leak, reimplement str_split correctly, ..