updated plotflow