added check cmd to http
always create a fresh doc
cmds for browser and script