recognise basic auth token veriation; add json decode method; rearrange response function method definitions to allow tracing the definitions