can you make the error catching more explicit?