added argument check for proxy