modified for using with cutlib-3.3.0_rc