nx functionality is added, connect.py is improved
prepAWS added