script for connection to bb