moved server info function up