trying to fix the connecting to the bnc and logging in