stable writing sequence files