starting to flesh out nml write