added multiscale support