add location message handler