updated to latest delegation API