some common util