debug on serve method