some new location finding code