add a fallback for possible exceptions