XYFoundation init