added intialisation to probe and modified 'dev'checking in disconnect