some utils used in my projects