added TFlags
added hasGroup support
added flags support