fix file mode, update framework