cleaned up how binary objects are created