update docs and bugfix