made changes according to RBLab/ncdfFlow#14