file prepare