.write form fixes