file rename and getting ready for piping