you need to check the function existence here to avoid errors