update usage and add untie to make file operation more safe