issue #11 using index to when creating log collection