start implementing minimal search