use STL iterator.
add a default value for backendType.
check backend file before open it to detect type.