fix stalling agent when both agent and web are in arguments, basic regression tests