add factory of categories
add factory of register_files