finish switch of string to bool in bool flags and remove debug println