Fixed bad path, added quotes back to open command. wasn't picking up query string