add changes for new versions and add logger