forgot to add default case to 2nd switch(act) (go jenkins build!)