updated query to use internals and update treeshake to support internals and dot syntax
fixing header / footer for treeshake2
new footer / header for treeshake, sync and simplified