fix some bugs, url string queries for env difs

Signed-off-by: rich sollenne <rich@sollenne.com>