fix codes which are broken by the 'private' field