update plugins structure and whitelistRecord usage