add deposit subscript; add option to set mode of archived files