optimize out dead catches