add subsample and subscale in __init__.py