move some method to module SapUtils