various API fixes and additions to work with httpebble