modified config loading to account for localhost