support outer name
fix argument treatment and add conversion of a1d, a2d
handle schema not found
fix case of schema
use global variable instead of Main_Data