added getsdrawn script from wcmckee