update docstring
fix missing imports