filter out non-modules