fixed server variable capture