modified setup function - separated settings for different hardware variants (different number of ports)