backend selection, better debug logging