modify dir and files