added base library
use element ref instead of simple ref