adding base api for the psh language