move seek to common code