added scripts to take in port as argument. check msgs on server in client loop