compile init when starting