add fully functional client script