plot files is nil by default