move config into init parameters