wrapper for  ws build code