old jansson < 2.3 support