make api compatible with 5.3