checking nil in GetServerBasename