setcard with custom query