fixes build, add forgotten catch in api