split out base_model functions, added b64 helper, version bump