some changes to utils