adding console logging to each catch block... also fixed many improperly terminated statements