loadPortals fix
add send switch message
remove debug messages