Backend: misc improvements