reworking structure to support bitcoin