refactor ubusd.c into reusable ubusd_library