file write test
fix bits, forgotten now
compiles