deprecated function scanner added to debug mode