config overhaul for localhost