little fixes in the API