move this out of try/catch?