add learning mod in context for preparation potimisations