todo list
replace bool param with enum. no functionality or perf change