fix for new jquery and many api breaks