some magic with IPAY