add console logging