update to accept localhost in dev
allow fallback on localhost