refactored common procedures into (wizard base) library