guard for a crash in existing pig code