simplify files and redirect