added locks and receipts