give me the code now for accessing the scanner from client side