added gspm functions and notify payload generator