fixing some useflags