read port from config