make stack and clientStack static, -> client_stack
improve spec printf types