before creating entities