fix write, add Write compiler