fixed filter chain for head requests
pass environment from command to server