add scanning to client