before upgrate