updated url callback paths and loop logic