changed to use port 9000 instead of socket