add after and before config