removed 'console.log'. added error messages for 404's and invalid format