server-side scripts for smlpaas