librender: rearrange a bit