preliminary location stuff