improve dired-rsync, write some general handler function for later usage