nesting batch under survey--also fixing build