add config ignore
using yield, refatoring