make sure we encode that URL to prevent shenanigans
add some getters
formatting fixes