removed second state_file creation (merge fault)