some utils for vframe