adapt to version prior to 1.2