add closedb support