replace function ids with object enums