fix to use localhost ip