injecting base packages at before typing stage