calc of the filename only once instead of multiple time + other code
clarification and fix.
correcting move/rename, had to add a delay among other thing for that.