add automatic cluster selection support
add automatic cluster selection support