some changes to enable raphael