altered request check for agent to allow agent to equal false