utils for cafe4