preliminary testing and bug fixes of public api