more backward compatibility for 2.7