first cut of '_write' method