working on wsd script