Reverted to console logging

throwing error commented