separated init to appropriate files