file_write added, v1, not working, but code is there