implemented some wallet stuff