update flag to 2.2 and entity to 1.4