uses encodeURIComponent to pass data now