Add entity flags

Signed-off-by: Michael Buesch <m@bues.ch>