fixed base64 handling
Recrified ScanForNew handling in the client