add scanner code