fixes socket path naming, breaks port out into a variable