replaced EntryPoint with BagEntryPoint