cleaned up xml to take in string, adding sys argv to runtime