add exception to api