added location in profile when using auto detect