simple method to make check for localhost simple