receive messages from server, get localization