fixing idempontency for application