Parsing correctly top-level module structure