added path cases & scanner adapter