add console log for port