extract modules, handle scroll position