completed initialization from xml