move components to top-level
re-run after moving components to the top level