temporary fix to make ECOS fast. Debug code still in