Updated to work with local, loose and live

Updated index to work local, loose and live.