bugfix API functions