still working on getting the whole port connection thing right..code unstable at
this point