adds missing flags