changed to foreign server api