fix missing flags. TODO