changed argument handling from pointers to stl vector of strings