debug
more debugging
working now
more robust location getting