added typeflags