support for @base directive