improved some of teh sample scripts