fixing so that if inputs already exist they do not get recreated
fixing conflicts and removing old file