do not rely on initialized flag, which is now deprecated