booking main API and some fixes