pfloc tweak
added pfloc
replaced autorefresh code