add general hubba api function
hopefully I didn't break anything