scanner helpers