add console.logs for easier troubleshooting