port bug fix (port number) and connection small fix