bugfixes, public methods fot API