prevent api metho without callback