Bugs

${servercfg} should be defined above fn_parms() line to function it
properly.