updated smpp_server logic