initialize empty search index if no index exists at boot time, fix login/logout when using custom port