added console log fallback