updated file rename helper