write out local