add environment check.  try to save stderr to cbfs