add query options "self", "pretty", "locals"