handle general-top-level insert