add support for automatically patch signatures