fixed behaviour to deal with energy input during execution.
fixed backup files behaviour