fixed infinite loop and changed backend options