add error handling in if
add inforrequest and infoanswer