backported additional mangos queries