write adress loop not in separate thread fix