return -1 if data is NULL
use std::string in mstress Path