rework local stuff

still calculate after the fact, but only once
hopefully will fix travis bind errors