Rewrite file manager