WIP - bits and key derivation