codes and queries
query support