unhardcoded backends insertion; small fixes