better medium searching

Signed-off-by: Paden <padenportillo@gmail.com>