fixed localhost hardcoding