support dynamic imports; parser made smart enough to go in proper order; tests pass.