addded file config deletion to avoid wrong overwrites