adds and starts work on file_writer
fixes key version tests