fix nanoplot and file name conflict issues