make bin_to_hex part of lib
playing around with auth and tokens