added console.log to port