a working version of sinon