added logic for warden