remove console logs; add support for complex beziel curves