revert earlier changes, will call this from external script