change categpries_dir to 'categories'