loader shim

not tested except for window global