fix bugs when looking up site keys; apache env notes