add needed functions to ipn process