small fixes, port setting