fixed _sf_p
fixed check_args