dynamic server basic code