move directories and files properly