server script with logger