add diff dirs in metadata