add keepfile to lib