0.5 back to share/livedb#master, init some variables so the're ref'd