zobaczmy..
added beforeGenerateEntry and afterGenerateEntry functions