cleanup ecies code