make this more in line with my principle of minimal code in a try/except