move init_params call out of params layer