cleanup terniary if statements
for network activation