[backend] small code cleanups