update crate_type