add wait command and remove if statement checking for catapult extension