fixed the -a parameter for automatic connection