fixed the issues with the digest loop (with a hack), also had to modify the core avgrund script to enable a callback api