write_bytes at the very end
clean imports