a scala version of ping++ sdk