setup ports correctly