move init back to main