added support for negative rational exponents