replace init cfg with just init from new cfg class