add elemlib support