added missing error handling