fixed missing port & vars