we can write to a file now, renamed a few things as well