getting async callback working