fixed typedef of service handler