update refs with x