init bundle and entity