use localhost for flask server