supports pkg.as; UNTESTED; #22