added srv conf and main conf support