move common utils into util package