added fix for localhost