remove foowriter and update imports