polished the hq encampment listing code.