expose existance query endpoint
fix variable naming