add __all__ and remove unused var