support array being null
update external references