code clean up; troubleshoot live site's error msg.