added missing 'release' calls