register location on startup.