made overwrite if exist / create new if not functionality for after 3 days of trying