fix dir/file usage
pack dirs