queryCode working, cleaned up url concatention