create location manager on the main thread