add error capture and fix footer link