fix handling of builtin chains