more ref changes