refs always lowercase; add blank id refs