fix cci_init user_data and metadata bugs