isolated initialization logic