add 4.7.7 compatibility